import request from "@/utils/request";
/**
 * 日程列表信息
 * @param params
 * @returns {*}
 */
export function getList(params) {
  return request({
    url: "/league/competitionSchedule/list",
    method: "get",
    params: params,
  });
}

/**
 * 新增日程
 * @param params
 * @returns {*}
 */
export function addSchedule(data) {
  return request({
    url: "/league/competitionSchedule/addSchedule",
    method: "post",
    data: data,
  });
}

/**
 * 编辑日程
 * @param params
 * @returns {*}
 */
export function editSchedule(data) {
  return request({
    url: "/league/competitionSchedule/updateSchedule",
    method: "put",
    data: data,
  });
}

/**
 * 删除日程
 * @param data
 * @returns {*}
 */
export function deleteApi(data) {
  return request({
    url: "/league/competitionSchedule/" + data.ids,
    method: "delete",
    data: data,
  });
}
